package com.ruoyi.hr.controller.hr.attendempmanage.attendInfo;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.hr.service.attendempmanage.attendInfo.AttendInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author yuanwei
 * @explain 考勤信息查看
 * @date 2020/4/25
 */
@Controller
@RequestMapping("/attendEmpManage/AttendInfo")
public class AttendInfoContorller extends BaseController {

    private String prefix = "hr/attendempmanage/attendInfo";

    @Autowired
    private AttendInfoService attendInfoService;

    @GetMapping()
    public String findAttendInfoList() {
        return prefix + "/attendInfo";
    }

    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo findAttendInfoList(@RequestParam Map map) {
        return getDataTable(attendInfoService.findAttendInfoList(map));
    }
}
